<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>交换2个变量案例</title>
</head>

<body>
  <script>
    let apple = '苹果汁'
    let orange = '橘子汁'
    let temp
    //  将apple里面的到temp中
    temp = apple
    //  将orange里面的橘子汁给apple
    apple = orange
    orange = temp
    console.log(apple, orange)


  </script>
</body>

</html>